tools/libxc, xen/x86: Added xc_set_mem_access_multi()
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Wed, 7 Sep 2016 09:12:43 +0000 (12:12 +0300)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 19 Sep 2016 15:59:42 +0000 (16:59 +0100)
commit1ef5056bd6274ecbe065387b6cf45657d6d700cd
tree85283637ada8554c9f9a4bed1a613dcaaef1b08a
parentb09499d3b98b317192465820668429301f6a3741
tools/libxc, xen/x86: Added xc_set_mem_access_multi()

Currently it is only possible to set mem_access restrictions only for
a contiguous range of GFNs (or, as a particular case, for a single GFN).
This patch introduces a new libxc function taking an array of GFNs.
The alternative would be to set each page in turn, using a userspace-HV
roundtrip for each call, and triggering a TLB flush per page set.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_mem_access.c
xen/arch/arm/p2m.c
xen/arch/x86/mm/p2m.c
xen/common/compat/memory.c
xen/common/mem_access.c
xen/include/public/memory.h
xen/include/xen/p2m-common.h
xen/include/xlat.lst